﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Harmonic.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to the Harmonic web store!";
            ReadModel.Queries query = new ReadModel.Queries();
            ViewData["AllProducts"] = query.GetAllProducts();
            return View(ViewData);
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
